package com.alibaba.aone.casestudy.common.entity;

import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;

public class CasestudyAnalysisParticipant implements Serializable {
	private Long id;
	private String name;
	private String accountId;
	private String casestudyNumber;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getCasestudyNumber() {
		return casestudyNumber;
	}

	public void setCasestudyNumber(String casestudyNumber) {
		this.casestudyNumber = casestudyNumber;
	}

	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((accountId == null) ? 0 : accountId.hashCode());
		result = prime * result
				+ ((casestudyNumber == null) ? 0 : casestudyNumber.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CasestudyAnalysisParticipant other = (CasestudyAnalysisParticipant) obj;
		if (accountId == null) {
			if (other.accountId != null)
				return false;
		} else if (!accountId.equals(other.accountId))
			return false;
		if (casestudyNumber == null) {
			if (other.casestudyNumber != null)
				return false;
		} else if (!casestudyNumber.equals(other.casestudyNumber))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}

}
